package com.thjk.bdf.preloan.web.enums;

public enum ChannelNameEnum {
	
	UNI_ENTRANCE_WX("100010010","金科-统一入口-微信"),		
	UNI_ENTRANCE_WEB("100010011","金科-统一入口-web"),			
	UNI_PROCESS_WEB("100010111","金科-统一流程-web");		
    
	private String code;
	private String name;
	
	ChannelNameEnum(String code,String name) {
		this.code = code;
		this.name = name;
	}
	
	
	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}
	
	
	public static String getChannelName(String code) {
		if (code != null) {
			for (ChannelNameEnum temEnum : values()) {
				if (temEnum.getCode().equals(code)) {
					return temEnum.getName();
				}
			}
		}
		return null;
	}

}
